//
//  SampuxGetTimeValue.m
//  Sampux
//
//  Created by rzm on 16/9/2.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SampuxGetTimeValue.h"

@implementation SampuxGetTimeValue
+ (NSMutableArray *)getTimeData:(NSMutableArray*)tempArr
{
    NSMutableArray *array = [NSMutableArray array];
    for (int i = 0; i < tempArr.count; i ++) {
        GBInterMaster_Bean_ProgramInfo* programInfo = tempArr[i];
        SampuxInstallTimeModel *model = [SampuxInstallTimeModel alloc];
        model.deviceAccount = STRING_FORMAT(programInfo.deviceAccount);
        model.deviceType = STRING_INT(programInfo.deviceType);
        model.weekDay =  STRING_INT(programInfo.weekDay);
        model.topValue = STRING_INT(programInfo.topValue);
        model.lowValue = STRING_INT(programInfo.lowValue);
        model.onePoint = STRING_INT(programInfo.onePoint);
        model.oneValue = STRING_INT(programInfo.oneValue);
        model.twoPoint = STRING_INT(programInfo.twoPoint);
        model.twoValue = STRING_INT(programInfo.twoValue);
        model.threePoint = STRING_INT(programInfo.threePoint);
        model.threeValue = STRING_INT(programInfo.threeValue);
        model.fourPoint = STRING_INT(programInfo.fourPoint);
        model.fourValue = STRING_INT(programInfo.fourValue);
        [array addObject:model];
    }
    return array;
}


@end
